|
If you can't view the Datasheet, Please click here to try to view without PDF Reader . |
|
Datasheet File OCR Text: |
preliminary data this is preliminary information on a new product now in deve lopment or undergoing evaluation. details are subject to change without notice. july 2010 doc id 17659 rev 1 1/106 1 stm32l151xx stm32l152xx ultralow power arm-based 32-bit mcu with up to 128 kb flash, rtc, lcd, usb, usart, i2c, spi, timers, adc, dac, comparators features operating conditions ? operating power supply range: 1.65 v to 3.6 v (without bor) or 1.8 v to 3.6 v (with bor option) ? temperature range: ?40 to 85 c low power features ? 4 modes: sleep, low-power run (15 a at 32 khz), low-power sleep (4 a), stop with rtc (1.2 a), stop (0.5 a), standby (0.27 a) ? dynamic core voltage scaling down to 233 a/mhz ? ultralow leakage per i/o: 50 na ? fast wakeup from stop: 8 s ? three wakeup pins core: arm 32-bit cortex ? -m3 cpu ? 32 mhz maximum frequency, 33.3 dmips peak (dhrystone 2.1) ? memory protection unit reset and supply management ? low power, ultrasafe bor (brownout reset) with 5 selectable thresholds ? ultralow power por/pdr ? programmable voltage detector (pvd) clock management ? 1 to 24 mhz crystal oscillator ? 32 khz oscillator for rtc with calibration ? internal 16 mhz factory-trimmed rc ? internal 37 khz low consumption rc ? internal multispeed low power rc, 64 khz to 4 mhz with a consumption down to 1.5 a ? pll for cpu clock and usb (48 mhz) low power calendar rtc ? alarm, periodic wakeup from stop/standby memories ? up to 128 kbyte of flash memory with ecc ? 4 kbyte of data eeprom with ecc ? up to 16 kbyte of ram up to 83 fast i/os (73 of which are 5 v-tolerant) all mappable on 16 external interrupt vectors development support ? serial wire debug, jtag and trace dma: 7-channel dma c ontroller, supporting timers, adc, spis, i 2 cs and usarts lcd 8 40 or 4 44 with step-up converter 12-bit adc up to 1 msps/24 channels ? temperature sensor and internal voltage reference ? operates down to 1.8 v 2 12-bit dacs with output buffers 2 ultralow power comparators ? window mode and wakeup capability 10 timers: ? 6 16-bit general-purpose timers, each with up to 4 ic/oc/pwm channels ? 2 16-bit basic timers ? 2 watchdog timers (independent and window) up to 8 communication interfaces ? up to 2 i 2 c interfaces (smbus/pmbus) ? up to 3 usarts (iso 7816 interface, lin, irda capabilit y, modem control) ? up to 2 spis (16 mbit/s) ? usb 2.0 full-speed interface crc calculation unit, 96-bit unique id table 1. device summary reference part number stm32l151xx stm32l151cb, stm32l151rb, stm32l151vb, stm32l151c8, stm32l151r8, stm32l151v8 stm32l152xx stm32l152cb, stm32l152rb, stm32l152vb, stm32l152c8, stm32l152r8, stm32l152v8 lqfp100 14 14 mm lqfp64 10 10 mm lqfp48 7 7 mm bga100 7 7 mm bga64 5 5 mm vfqfpn48 7 7 mm www.st.com
contents stm32l151xx, stm32l152xx 2/106 doc id 17659 rev 1 contents 1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2 description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 2.1 device overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 2.2 ultralow power device continuum . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 2.2.1 performance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 2.2.2 shared peripherals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 2.2.3 common system strategy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 2.2.4 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 3 functional overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 3.1 low power modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 3.2 arm? cortex?-m3 core with mpu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 3.3 reset and supply management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 3.3.1 power supply schemes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 3.3.2 power supply supervisor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 3.3.3 voltage regulator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 3.3.4 boot modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 3.4 clock management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 3.5 low power real-time clock and backup registers . . . . . . . . . . . . . . . . . . . 17 3.6 gpios (general-purpose inputs/outputs) . . . . . . . . . . . . . . . . . . . . . . . . . 18 3.7 memories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 3.8 dma (direct memory access) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 3.9 lcd (liquid crystal display) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 3.10 adc (analog-to-digital converter) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 3.11 dac (digital-to-analog converter) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 3.12 ultralow power comparators and reference voltage . . . . . . . . . . . . . . . . . 21 3.13 routing interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 3.14 timers and watchdogs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 3.14.1 general-purpose timers (tim2, tim3, tim4, tim9, tim10 and tim11) 21 3.14.2 basic timers (tim6 and tim7) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 3.14.3 systick timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 3.14.4 independent watchdog (iwdg) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 stm32l151xx, stm32l152xx contents doc id 17659 rev 1 3/106 3.14.5 window watchdog (wwdg) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 3.15 communication interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 3.15.1 i2c bus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 3.15.2 universal synchronous/asynchronous receiver transmitter (usart) . . 23 3.15.3 serial peripheral interface (spi) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 3.15.4 universal serial bus (usb) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 3.16 crc (cyclic redundancy check) calculation unit . . . . . . . . . . . . . . . . . . . 23 3.17 development support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 4 pin descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 5 memory mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 6 electrical characteristi cs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 6.1 parameter conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 6.1.1 minimum and maximum values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 6.1.2 typical values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 6.1.3 typical curves . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 6.1.4 loading capacitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 6.1.5 pin input voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 6.1.6 power supply scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 6.1.7 current consumption measurement . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 6.2 absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 6.3 operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 6.3.1 general operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 6.3.2 embedded reset and power control block characteristics . . . . . . . . . . . 46 6.3.3 embedded internal reference voltage . . . . . . . . . . . . . . . . . . . . . . . . . . 48 6.3.4 supply current characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 6.3.5 external clock source characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 6.3.6 internal clock source characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 6.3.7 pll characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 6.3.8 memory characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 6.3.9 emc characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 6.3.10 absolute maximum ratings (electrical sensitivity) . . . . . . . . . . . . . . . . . 70 6.3.11 i/o port characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 6.3.12 nrst pin characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 6.3.13 tim timer characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 contents stm32l151xx, stm32l152xx 4/106 doc id 17659 rev 1 6.3.14 communications interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 6.3.15 12-bit adc characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 6.3.16 dac electrical specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88 6.3.17 temperature sensor characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89 6.3.18 comparator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90 6.3.19 lcd controller (stm32l152xx only) . . . . . . . . . . . . . . . . . . . . . . . . . . . 91 7 package characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93 7.1 package mechanical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93 7.2 thermal characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 7.2.1 reference document . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 7.2.2 selecting the product temperature range . . . . . . . . . . . . . . . . . . . . . . . 102 8 ordering information scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104 9 revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105 stm32l151xx, stm32l152xx list of tables doc id 17659 rev 1 5/106 list of tables table 1. device summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 table 2. ultralow power stm32l15xxx device features and peripheral counts . . . . . . . . . . . . . . . . 10 table 3. timer feature comparison . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 table 4. stm32l15xxx pin definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 table 5. alternate function input/output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 table 6. voltage characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 table 7. current characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 table 8. thermal characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 table 9. general operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 table 10. functionalities depending on the operating power supply range . . . . . . . . . . . . . . . . . . . . 45 table 11. embedded reset and power control block characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . 46 table 12. embedded internal reference voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 8 table 13. current consumption in run mode, code with data processing running from flash. . . . . . 50 table 14. current consumption in run mode, code wit h data processing running from ram . . . . . . 51 table 15. current consumption in sleep mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 table 16. current consumption in low power run mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 table 17. current consumption in low power sleep mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 table 18. typical and maximum current consumptions in stop mode . . . . . . . . . . . . . . . . . . . . . . . . 55 table 19. typical and maximum current consumptions in standby mode . . . . . . . . . . . . . . . . . . . . . 56 table 20. typical and maximum timings in low power modes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 table 21. peripheral current consumption . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 table 22. high-speed external user clock characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 table 23. low-speed external user clock characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 table 24. hse 1-24 mhz oscillator characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 2 table 25. lse oscillator characteristics (f lse = 32.768 khz) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63 table 26. hsi oscillator characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 table 27. lsi oscillator characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 table 28. msi oscillator ch aracteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 table 29. pll characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 table 30. ram and hardware registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 table 31. flash memory characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 table 32. flash memory endurance and data retention . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 table 33. ems characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 table 34. emi characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70 table 35. esd absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 table 36. electrical sensitivities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 table 37. i/o static characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 table 38. output voltage characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 table 39. i/o ac characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 table 40. nrst pin characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 table 41. timx characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 table 42. i 2 c characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 table 43. scl frequency (f pclk1 = 36 mhz, v dd = 3.3 v) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 table 44. spi characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 table 45. usb startup time. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 table 46. usb dc electrical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 table 47. usb: full-speed electrical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 table 48. adc characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 list of tables stm32l151xx, stm32l152xx 6/106 doc id 17659 rev 1 table 49. adc accuracy - limited test conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 table 50. adc accuracy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 table 51. dac characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88 table 52. ts characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89 table 53. comparator 1 characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90 table 54. comparator 2 characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90 table 55. lcd controller characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91 table 56. vfqfpn48 ? very thin fine pitch q uad flat pack nolead 7 7 mm, 0.5 mm pitch package mechanical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94 table 57. tfbga64 - 8 x 8 active ball array, 5 x 5 mm, 0.5 mm pitch, package mechanical data. . . 96 table 58. ufbga100 - ultra fine pitch ball grid array, 7 x 7 mm, 0.50 mm pitch, package mechanical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 table 59. lqpf100, 14 x 14 mm, 100-pin low-profile quad flat package mechanical data . . . . . . . . 98 table 60. lqfp64, 10 x 10 mm, 64-pin low-profile quad flat package mechanical data . . . . . . . . . . 99 table 61. lqfp48, 7 x 7 mm, 48-pin low-profile quad flat package mechanical data . . . . . . . . . . . 100 table 62. thermal characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 table 63. ordering information scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104 stm32l151xx, stm32l152xx list of figures doc id 17659 rev 1 7/106 list of figures figure 1. ultralow power stm32l15xxx block diagram. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 figure 2. clock tree . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 figure 3. stm32l15xxx ufbga100 ballout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 figure 4. stm32l15xxx tfbga64 ballout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 figure 5. stm32l15xxx lqfp100 pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 7 figure 6. stm32l15xxx lqfp64 pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 figure 7. stm32l15xxx lqfp48 pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 figure 8. stm32l15xxx vfqfpn48 pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 figure 9. memory map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 figure 10. pin loading conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 figure 11. pin input voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 figure 12. power supply scheme. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 figure 13. current consumption measurement scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 figure 10. power supply thresholds. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 figure 14. high-speed external clock source ac timing diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 figure 15. low-speed external clock source ac timing diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 figure 16. hse oscillator circuit diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63 figure 17. typical application with a 32.768 khz crystal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 figure 18. i/o ac characteristics definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 figure 19. recommended nrst pin protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 figure 20. i 2 c bus ac waveforms and measurement circuit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 figure 21. spi timing diagram - slave mode and cpha = 0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 figure 22. spi timing diagram - slave mode and cpha = 1 (1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 figure 23. spi timing diagram - master mode (1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 figure 24. usb timings: definition of data signal rise and fall time . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 figure 25. adc accuracy characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 figure 26. typical connection diagram using the adc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 figure 27. power supply and reference decoupling (v ref+ not connected to v dda ). . . . . . . . . . . . . . 86 figure 28. power supply and reference decoupling (v ref+ connected to v dda ). . . . . . . . . . . . . . . . . 87 figure 29. 12-bit buffered /non-buffered dac . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89 figure 30. vfqfpn48 7 x 7 mm, 0.5 mm pitch, package outline . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94 figure 31. recommended footprint (dimensions in mm) (1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94 figure 32. recommended pcb design rules for pads (0.5 mm pitch bga) . . . . . . . . . . . . . . . . . . . . 95 figure 33. tfbga64 - 8 x 8 active ball array, 5 x 5 mm, 0.5 mm pitch, package outline . . . . . . . . . . 96 figure 34. ufbga100 - ultra fine pitch ball grid array, 7 x 7 mm, 0.50 mm pitch, package outline. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 figure 35. lqfp100, 14 x 14 mm, 100-pin low-profile quad flat package outline . . . . . . . . . . . . . . . . 98 figure 36. recommended footprint (1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98 figure 37. lqfp64, 10 x 10 mm, 64-pin low-profile quad flat package outline . . . . . . . . . . . . . . . . . . 99 figure 38. recommended footprint (1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99 figure 39. lqfp48, 7 x 7 mm, 48-pin low-profile quad flat package outline . . . . . . . . . . . . . . . . . . . 100 figure 40. recommended footprint (1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100 figure 41. lqfp100 p d max vs. t a . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103 introduction stm32l151xx, stm32l152xx 8/106 doc id 17659 rev 1 1 introduction this datasheet provides the ordering information and mechanical device characteristics of the stm32l151xx and stm32l152xx ultralow power arm cortex?-based microcontrollers product line. the ultralow power stm32l15xxx family includes devices in 3 different package types: from 48 pins to 100 pins. depending on the device chosen, different sets of peripherals are included, the description below gives an overview of the complete range of peripherals proposed in this family. these features make the ultralow power stm32l15xxx microcontroller family suitable for a wide range of applications: medical and handheld equipment application control and user interface pc peripherals, gaming, gps and sport equipment alarm systems, wired and wirel ess sensors, video intercom utility metering for information on the cortex?-m3 core please refer to the cortex?-m3 technical reference manual, available from the www.arm.com website at the following address: http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0337g. figure 1 shows the general block diagram of the device family. stm32l151xx, stm32l152xx description doc id 17659 rev 1 9/106 2 description the ultralow power stm32l15xxx incorporates the connectivity power of the universal serial bus (usb) with the high-performance arm cortex ? -m3 32-bit risc core operating at a 32 mhz frequency, a memory protection un it (mpu), high-speed embedded memories (flash memory up to 128 kbytes and ram up to 16 kbytes), and an extensive range of enhanced i/os and peripherals co nnected to two apb buses. all devices offer a 12-bit adc, 2 dacs and 2 ultralow power comparators, six general-purpose 16-bit timers and two basic timers, which can be used as time bases. moreover, the stm32l15xxx devices contain standard and advanced communication interfaces: up to two i 2 cs and spis, three usarts and a usb. they also include a real-time clock and a set of backup registers that remain powered in standby mode. finally, the integrated lcd controller has a built-in lcd voltage generator that allows you to drive up to 8 multiplexed lcds with contrast independent of the supply voltage. the ultralow power stm32l15 xxx operates from a 1.8 to 3. 6 v power supply (down to 1.65 v at power down) with bor and from a 1.65 to 3.6 v power supply without bor option. it is available in the -40 to +85 c temperature range. a comprehensive set of power-saving modes allows the design of low-power applications description stm32l151xx, stm32l152xx 10/106 doc id 17659 rev 1 2.1 device overview . table 2. ultralow power stm32l15xxx device features and peripheral counts peripheral stm32l15xcx stm32l15xrx stm32l15xvx flash - kbytes 64 128 64 128 64 128 ram - kbytes 10 16 10 16 10 16 timers general-purpose 666 basic 222 communication interfaces spi 222 i 2 c 222 usart 333 usb 111 gpios 37 51 83 12-bit synchronized adc number of channels 1 16 channels 1 20 channels 1 24 channels 12-bit dac number of channels 2 2 2 2 2 2 lcd (stm32l152xx only) com x seg 4x16 4x32 8x28 4x44 8x40 comparator 222 cpu frequency 32 mhz operating voltage 1.8 v to 3.6 v (down to 1.65 v at power-down) with bor option 1.65 v to 3.6 v (down to 1.65 v at power-down) without bor option operating temperatures ambient temperatures: ?40 to +85 c junction temperature: ?40 to + 105 c packages lqfp48, vfqfn48 lqfp64, bga64 lqfp100, bga100 stm32l151xx, stm32l152xx description doc id 17659 rev 1 11/106 2.2 ultralow power device continuum the ultralow power stm32l151xx and stm32l152xx are fully pin-to-pin, software and feature compatible. besides the full compatibilit y within the family, the devices are part of stmicroelectronics microcontrollers ultralow power strategy which also includes stm8l101xx and stm8l15xx devices. th e stm8l and stm32l families allow a continuum of performance, peripherals, system architecture and features. they are all based on stmicroelectronics 0.13 m ultralow leakage process. note: the ultralow power stm32l and genera l-purpose stm32fxxxx families are pin-to-pin compatible. the stm8l15xxx devices are pin-to-pin compatible with the stm8l101xx devices. please refer to the stm32f and stm8l documentation for more information on these devices. 2.2.1 performance all families incorporate highly energy-efficien t cores with both harvar d architecture and pipelined execution: advanced stm8 core fo r stm8l families and arm cortex?-m3 core for stm32l family. in addition specific care for the design architecture has been taken to optimize the ma/dmips and ma/mhz ratios. this allows the ultralow power performance to range from 5 up to 33.3 dmips. 2.2.2 shared peripherals stm8l15xxx and stm32l15xxx share identical peripherals which ensure a very easy migration from one family to another: analog peripherals: adc, dac, and comparators digital peripherals: rtc and some communication interfaces 2.2.3 common system strategy to offer flexibility and optimize performance, the stm8l15xx and st m32l15xx families use a common architecture: same power supply range from 1.65 v to 3.6 v, (1.65 v at power down only for stm8l15xx devices) architecture optimized to reach ultralow consumption both in low power modes and run mode fast startup strategy from low power modes flexible system clock ultrasafe reset: same reset strategy incl uding power-on reset, power-down reset, brownout reset and programmable voltage detector. 2.2.4 features st ultralow power continuum al so lies in feature compatibility: more than 10 packages with pin count from 20 to 100 pins and size down to 3 x 3 mm memory density ranging from 4 to 128 kbytes functional overview stm32l151xx, stm32l152xx 12/106 doc id 17659 rev 1 3 functional overview figure 1 shows the block diagrams. figure 1. ultralow power stm32l15xxx block diagram 1. t a = ?40 c to +105 c (junction temperature up to 125 c). 2. af = alternate function on i/o port pin. % 8 4 ) 4 7 7 $ ' b i t ! $ # * 4 ! ' 3 7 ! & * 4 $ ) * 4 # + 3 7 # + * 4 - 3 3 7 $ . * 4 2 3 4 * 4 $ / . 2 3 4 6 $ $ 6 t o 6 ! & ! ( " 5 3 " $ 0 5 3 " $ - - / 3 ) - ) 3 / 3 # + . 3 3 7 + 5 0 & m a x - ( z 6 3 3 3 # , 3 $ ! 3 - " u s 0 - " u s ) # 6 $ $ 2 % & |